<?php

class Forum extends Model
{
  /*pre-define variables here*/
  
  
  function __construct() {
  }
  
  function ParseMessage($post)
  {
    //Parse user message for forum boards
    $output1 = htmlspecialchars($post1);
    //enable basic code tags?
    $match = array('#\[code\](.*?)\[\/code\]#se');
    $replace = array("'<div id=\"code\">'.highlight_string(stripslashes(html_entity_decode('$1', ENT_QUOTES)), true).'</div>'");
        $output2 = nl2br(preg_replace($match, $replace, $output1));
        return $output2;
  }
  //include post system && thread system

}